package Huihu.src.刷题;

import java.util.Scanner;

public class 总分和平均分 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int [] grade=new int[3];
        for (int i = 0; i < 3; i++) {
            grade[i]=scanner.nextInt();
        }
        zf(grade);
    }
    public static void zf(int [] array){
        int sum=0;
        double pj=0;
        for (int i = 0; i < array.length; i++) {
            sum+=array[i];
        }
        pj=sum/ array.length;
        System.out.println("总分："+sum);
        System.out.println("平均分："+pj);
    }
}
